{include file="$html_tpl_path/box_top.html" name=$box_name}
{include file="$html_tpl_path/box_name.html" name=$box_name class=$box_name}

<div class="box_content categories clearfix" {if $id}id="{$id}"{/if}>
  <ul class="ul_level_1">
  {foreach from=$BOX_CONTENT item=navi_item}
    <li class="li_level_{$navi_item.level} {if $navi_item.active}activ{/if}">
      <a class="a_level_{$navi_item.level}" href="/{$navi_item.cat_href}">
        {$navi_item.cat_name}
      </a>
    </li>
	{if $navi_item.children_count > 0 && $navi_item.active == 1}
  </ul>

  <ul class="ul_level_2">
		{foreach from=$navi_item.children_items item=navi_sub_item}
    <li class="li_level_{$navi_sub_item.level} {if $navi_sub_item.active}activ{/if}">
      <a class="a_level_{$navi_sub_item.level}" href="/{$navi_sub_item.cat_href}">
        {$navi_sub_item.cat_name}
      </a>
    </li>
		{/foreach}
  </ul>

  <ul class="ul_level_1">
	{/if}
  {/foreach}
  </ul>
</div>

{include file="$html_tpl_path/box_bottom.html"}